package org.example;

import org.example.config.SpringConfig;
import org.example.dao.BrandDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ExecutionEfficiencyDemo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);
        BrandDao brandDao = applicationContext.getBean(BrandDao.class);
        brandDao.test();
    }
}
